package com.gongjian.web.dcontroller;

import com.gongjian.database.dservice.DClasseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.RequestWrapper;

/**
 * @author donting
 * @Description
 * @create 2019-03-30 11:24
 */
@RestController
public class DClasseController {

    @Autowired
    DClasseService dClasseService;

    @RequestMapping("/d/classe/findAllClasse")
    public String findAllClasse(int Page, int PageSize) {
        return dClasseService.findAllClasse(Page, PageSize);
    }

    @RequestMapping("/d/classe/findAllClasseNoPage")
    public String findAllClasse() {
        return dClasseService.findAllClasse(1, 100000000);
    }

    public String addCourse(String courseNumber) {
        return "";
    }
}
